<!DOCTYPE html>
<html>
<head>
    <style>body{height:100%;margin:0;width:100%;overflow:hidden}#graphiql{height:100vh}</style>
    <link rel=stylesheet href="webjars/graphiql/0.6.6/graphiql.min.css" />
    <script src="webjars/fetch/0.9.0/fetch.min.js"></script>
    <script src="webjars/react/0.14.7/react.min.js"></script>
    <script src="webjars/react/0.14.7/react-dom.min.js"></script>
    <script src="webjars/graphiql/0.6.6/graphiql.min.js"></script>
</head>
<body>
<div id=graphiql>Loading...</div>
<script>var search=window.location.search;var parameters={};search.substr(1).split("&").forEach(function(b){var a=b.indexOf("=");if(a>=0){parameters[decodeURIComponent(b.slice(0,a))]=decodeURIComponent(b.slice(a+1))}});if(parameters.variables){try{parameters.variables=JSON.stringify(JSON.parse(parameters.variables),null,2)}catch(e){}}function onEditQuery(a){parameters.query=a;updateURL()}function onEditVariables(a){parameters.variables=a;updateURL()}function onEditOperationName(a){parameters.operationName=a;updateURL()}function updateURL(){var a="?"+Object.keys(parameters).filter(function(b){return Boolean(parameters[b])}).map(function(b){return encodeURIComponent(b)+"="+encodeURIComponent(parameters[b])}).join("&");history.replaceState(null,null,a)}function graphQLFetcher(a){return fetch(window.location.origin+"/graphql",{method:"post",headers:{Accept:"application/json","Content-Type":"application/json",},body:JSON.stringify(a),credentials:"include",}).then(function(b){return b.text()}).then(function(c){try{return JSON.parse(c)}catch(b){return c}})}ReactDOM.render(React.createElement(GraphiQL,{fetcher:graphQLFetcher,query:parameters.query,variables:parameters.variables,operationName:parameters.operationName,onEditQuery:onEditQuery,onEditVariables:onEditVariables,onEditOperationName:onEditOperationName}),document.getElementById("graphiql"));</script>
</body>
</html>